package com.ruoyi.electricity.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;

/**
 * 图片视频上传信息对象 t_multimedia_upload_info
 *
 * @author ljw
 * @date 2023-12-17
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MultimediaUploadInfo
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;
    @NotNull(message = "请上传文件")
    private MultipartFile file;

    /** 图片视频url */
    @Excel(name = "图片视频url")
    private String multimediaUrl;

    /** 资源类型 */
    @Excel(name = "资源类型")
    private String multimediaType;

    /** 资源描述 */
    @Excel(name = "资源描述")
    private String description;

    /** 上传者 */
    @Excel(name = "上传者")
    @NotNull(message = "请输入上传者")
    private String uploader;

    /** 上传地点 */
    @Excel(name = "上传地点")
    @NotNull(message = "请输入上传地点")
    private String location;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date uploadDate;


}
